/* ----
# Pio Plugin
# By: Dreamer-Paul
# Last Update: 2021.3.3

一个支持更换 Live2D 模型的 Typecho 插件。
---- */

.pio-container {
    bottom: 0;
    z-index: 52;
    color: #666;
    position: fixed;
    user-select: none;
}

.pio-container .pio-show {
    left: -1em;
    bottom: 1em;
    width: 3em;
    height: 3em;
    display: none;
    cursor: pointer;
    position: absolute;
    border-radius: 3em;
    border: 3px solid #fff;
    transition: transform 0.3s;
    background: url(avatar.jpg) center/contain;
}
#pio {
    cursor: grab;
}

#pio:active {
    cursor: grabbing;
}

.pio-container.hidden .pio-show {
    display: block;
}
.pio-container.hidden .pio-show:hover {
    transform: translateX(0.5em);
}

.pio-container.hidden #pio {
    display: none;
}

.pio-container.left {
    left: 0;
}
.pio-container.right {
    right: 0;
}
.pio-container.active {
    cursor: move;
}
.pio-container.static {
    pointer-events: none;
}

.pio-container .pio-action {
    top: 3em;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s;
}
.pio-container.left .pio-action {
    right: 0;
}
.pio-container.right .pio-action {
    left: 0;
}
.pio-container:hover .pio-action {
    opacity: 1;
}

.pio-action span {
    color: #fff;
    width: 1.5em;
    height: 1.5em;
    display: block;
    cursor: pointer;
    text-align: center;
    border-radius: 66%;
    margin-bottom: 0.5em;
    border: 1px solid #666;
    background: #fff center/70% no-repeat;
}
.pio-action .pio-home {
    background-image: url();
}
.pio-action .pio-close {
    background-image: url();
}
.pio-action .pio-skin {
    background-image: url();
}
.pio-action .pio-info {
    background-image: url();
}
.pio-action .pio-sentence {
    background-image: url();
}

.pio-container .pio-dialog {
    top: -4em;
    opacity: 0;
    z-index: -2;
    font-size: 0.8em;
    min-width: 12em;
    background-color: rgba(236, 217, 188, 0.5);
    padding: 0.75em 1em;
    border-radius: 1em;
    visibility: hidden;
    position: absolute;
    word-break: break-all;
    border: 1px solid #eee;
    transition: opacity 0.3s, visibility 0.3s;
}
.pio-container .pio-dialog.active {
    opacity: 1;
    visibility: visible;
}

.pio-container.left .pio-dialog {
    left: 1em;
}
.pio-container.right .pio-dialog {
    right: 1em;
}

#pio {
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    #pio {
        width: 8em;
    }
    .pio-container {
        pointer-events: none;
    }
}
